package cloud.api.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zw
 * @date 2022-08-20.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> {
    private Integer code;
    private String message;
    private T data;
    public Result(Integer code,String message){
        this(code,message,null);
    }
//     public static Result< Succeed(T succeed)

}